package service

import (
	"zhonghui/console/warehouse/dbx/db_zh_kernel_slave"

	"zhonghui/console/warehouse/modelx/model_zh_kernel"
)

// 获取管理员信息
func GetManager(id uint32) (model_zh_kernel.ConsoleManager, error) {
	user := model_zh_kernel.ConsoleManager{}
	if err := db_zh_kernel_slave.Client().Where("id = ?", id).Take(&user).Error; err != nil {
		return user, err
	}

	return user, nil
}
